{include file="file:$current_path/_header.tpl"}
<h3 id="pageTitle">Install</h3>
{include file="file:$admin_global_path/_messages.tpl"}

<!-- LEFT -->

<div id="leftColumn">



<div class="boxleftColumn">
<p class="borderBottom">It appears this is the first time you've run this instance of communit.as.</p>
<p>Answer the questions and click on the "Install" button below to continue.</p>
</div>

</div>

<!-- MAIN COLUMN -->

<div id="centerColumnLayout2">
{if isset($success)}
{if isset($config_file)}
<textarea rows="20" cols="80">
{$config_file}
</textarea>
{/if}
{else} 


<form method="post" action="/" class="multiform" enctype="multipart/form-data">
		<div class="blockHeadline">Default Database Settings</div>		
		<fieldset>
		<label>Database Host</label>		
		<input type="text" value="{$db_host}" name="db_host" id="db_host" class="text"/>
	
		<label>Database Port</label>		
		<input type="text" value="{$db_port}" name="db_port" id="db_port" class="text"/>
	
		<label>Database Socket (You can probably leave this blank.)</label>		
		<input type="text" value="{$db_sock}" name="db_sock" id="db_sock" class="text"/>	
	
		<label>Database Name (must already exist)</label>		
		<input type="text" value="{$db_name}" name="db_name" id="db_name"/>
		
		<label>Database Username</label>		
		<input type="text" value="{$db_user}" name="db_user" id="db_user"/>
	
		<label>Database Password</label>		
		<input type="text" value="{$db_pass}" name="db_pass" id="db_pass"/>
		
		</fieldset>


	
	<div class="blockHeadline">Application Settings</div>		
	<fieldset>
			<label>Time zone</label>			
			{html_options name=cts_timezone id=cts_timezone options=$timezones selected=$cts_timezone}
	</fieldset>

	<div class="blockHeadline">Admin User Settings</div>		
	<fieldset>
			<label>Username</label>
			<input type="text" value="{$admin_username}" name="admin_username" id="admin_username"/>
		
			<label>Email</label>
			<input type="text" value="{$admin_email}" name="admin_email" id="admin_email"/>					
		
	</fieldset>

	<div class="blockHeadline">Advanced Settings</div>		
	<fieldset>
	<p>Defaults are probably okay.</p>
		
		<label>Path to Zend Framework</label>
		<input type="text" size="75" value="{$cts_zf_path}" name="cts_zf_path" id="cts_zf_path"/>
		
		<label>Path to Smarty</label>
		<input type="text" size="75" value="{$cts_smarty_path}" name="cts_smarty_path" id="cts_smarty_path"/>					
		
		<label>Path to Asido</label>
		<input type="text" size="75" value="{$cts_asido_path}" name="cts_asido_path" id="cts_asido_path"/>					
		
		<label>Temp Path</label>
		<input type="text" size="75" value="{$tmp_path}" name="tmp_path" id="tmp_path"/>					
				
		<label>Log Path</label>
		<input type="text" size="75" value="{$log_path}" name="log_path" id="log_path"/>
		
	</fieldset>
	
	<div class="blockHeadline">Save and Install</div>		
	<fieldset>
		<p class="clearfix"><input type="submit" class="button yes" value="Install"/></p>
	</fieldset>

</form>
{/if}
</div>
{include file="file:$current_path/_footer.tpl"}
